<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>通知公告</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <script src="./lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="./js/xadmin.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-carousel" id="carouse">
                        <div carousel-item>
                            <div><img src="images/carouse1.jpg" alt="条目1" width="100%" href="http://www.baidu.com"></div>
                            <div><img src="images/carouse2.jpg" alt="条目2" width="100%" href="http://www.baidu.com"></div>
                            <div><img src="images/carouse3.jpg" alt="条目3" width="100%" href="http://www.baidu.com"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <blockquote class="layui-elem-quote">
                                <div>
                                    欢迎使用轻语教务信息系统！当前时间:
                                    <span id="today"></span>
                                </div>
                            </blockquote>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            <span>最新公告</span>
                            <a href="javascript:" style="float: right">更多</a>
                        </div>
                        <div class="layui-card-body" >
                            <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a class="x-admin-backlog-body" th:href="'articles/'+${articles[0].articleId}">
                                        <h3 th:text="${articles[0].title}" style="font-size: medium">标题已走失</h3>
                                        <span class="layui-badge layui-bg-cyan layuiadmin-badge" th:text="新" th:if="${#dates.day(articles[0].date)>=#dates.day(#dates.createToday())}"></span>
                                        <p>
                                            <cite th:text="${#strings.abbreviate(articles[0].content,15)}" style="font-size: small">内容已走失</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3 th:text="${articles[1].title}" style="font-size: medium">标题已走失</h3>
                                        <span class="layui-badge layui-bg-cyan layuiadmin-badge" th:text="新" th:if="${#dates.day(articles[1].date)>=#dates.day(#dates.createToday())}"></span>
                                        <p>
                                            <cite th:text="${#strings.abbreviate(articles[1].content,15)}" style="font-size: small">内容已走失</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3 th:text="${articles[2].title}" style="font-size: medium">标题已走失</h3>
                                        <span class="layui-badge layui-bg-cyan layuiadmin-badge" th:text="新" th:if="${#dates.day(articles[2].date)>=#dates.day(#dates.createToday())}"></span>
                                        <p>
                                            <cite th:text="${#strings.abbreviate(articles[2].content,15)}" style="font-size: small">内容已走失</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3 th:text="${articles[3].title}" style="font-size: medium">标题已走失</h3>
                                        <span class="layui-badge layui-bg-cyan layuiadmin-badge" th:text="新" th:if="${#dates.day(articles[3].date)>=#dates.day(#dates.createToday())}"></span>
                                        <p>
                                            <cite th:text="${#strings.abbreviate(articles[3].content,15)}" style="font-size: small">内容已走失</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3 th:text="${articles[4].title}" style="font-size: medium">标题已走失</h3>
                                        <span class="layui-badge layui-bg-cyan layuiadmin-badge" th:text="新" th:if="${#dates.day(articles[4].date)>=#dates.day(#dates.createToday())}"></span>
                                        <p>
                                            <cite th:text="${#strings.abbreviate(articles[4].content,15)}" style="font-size: small">内容已走失</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3 th:text="${articles[5].title}" style="font-size: medium">标题已走失</h3>
                                        <span class="layui-badge layui-bg-cyan layuiadmin-badge" th:text="新" th:if="${#dates.day(articles[5].date)>=#dates.day(#dates.createToday())}"></span>
                                        <p>
                                            <cite th:text="${#strings.abbreviate(articles[5].content,15)}" style="font-size: small">内容已走失</cite></p>
                                    </a>
                                </li>

                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">系统信息</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>前端技术支持</th>
                                        <td><a href="http://x.xuebingsi.com/" target="_blank">基于layui的X-admin框架</a></td></tr>
                                    <tr>
                                        <th>后端框架</th>
                                        <td>Spring Boot 2.2.6.RELEASE</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <style id="welcome_style"></style>
                <div class="layui-col-md12">
                    <blockquote class="layui-elem-quote layui-quote-nm">
                        开发者：ss
                        邮箱：torisang@126.com
                        电话：(+86)137-1727-8565
                    </blockquote>
                </div>
            </div>
        </div>
        </div>
    <script>
        layui.use('carousel', function(){
            var carousel = layui.carousel;
            //建造实例
            carousel.render({
                elem: '#carouse'
                ,width: '100%' //宽度
                ,height: '50%'
                ,arrow: 'hover' //箭头
                ,anim: 'fade' //切换动画方式
            });
        });
    </script>
    </body>
</html>